const router = require('koa-router')()
// const Database = require("../../config/database")
// front 前台服务器
router.prefix('/api/front')
router.get('/', async (ctx, next) => {
  // let database = new Database();
  // console.log('database',database)
  ctx.body = {
    title: 'koa2 json'
  }
})

router.get('/string', async (ctx, next) => {
  ctx.body = 'koa2 string'
})

router.get('/json', async (ctx, next) => {
  ctx.body = {
    title: 'koa2 json'
  }
})

module.exports = router
